<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{ido4SaleOrderBean.id}"/>
		<f:event type="preRenderView" listener="#{ido4SaleOrderBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Ido 4Sale Order"/>

	<ui:define name="header">
		Ido 4Sale Order
	</ui:define>

	<ui:define name="subheader">
		View existing Ido 4Sale Order
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoNo" value="So No:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoNo" value="#{ido4SaleOrderBean.ido4SaleOrder.soNo}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoDescr" value="So Descr:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoDescr" value="#{ido4SaleOrderBean.ido4SaleOrder.soDescr}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoDate" value="So Date:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoDate" value="#{ido4SaleOrderBean.ido4SaleOrder.soDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoCustNo" value="So Cust No:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoCustNo" value="#{ido4SaleOrderBean.ido4SaleOrder.soCustNo}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoCustCode" value="So Cust Code:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoCustCode" value="#{ido4SaleOrderBean.ido4SaleOrder.soCustCode}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoCustTitleCode" value="So Cust Title Code:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoCustTitleCode" value="#{ido4SaleOrderBean.ido4SaleOrder.soCustTitleCode}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoCustFirstName" value="So Cust First Name:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoCustFirstName" value="#{ido4SaleOrderBean.ido4SaleOrder.soCustFirstName}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoCustLastName" value="So Cust Last Name:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoCustLastName" value="#{ido4SaleOrderBean.ido4SaleOrder.soCustLastName}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoCustIdCardNo" value="So Cust Id Card No:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoCustIdCardNo" value="#{ido4SaleOrderBean.ido4SaleOrder.soCustIdCardNo}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoDiscountPerc" value="So Discount Perc:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoDiscountPerc" value="#{ido4SaleOrderBean.ido4SaleOrder.soDiscountPerc}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoDiscountVal" value="So Discount Val:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoDiscountVal" value="#{ido4SaleOrderBean.ido4SaleOrder.soDiscountVal}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoDiscountTotal" value="So Discount Total:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoDiscountTotal" value="#{ido4SaleOrderBean.ido4SaleOrder.soDiscountTotal}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoStatusIncVat" value="So Status Inc Vat:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoStatusIncVat" value="#{ido4SaleOrderBean.ido4SaleOrder.soStatusIncVat}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoVatPercVal" value="So Vat Perc Val:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoVatPercVal" value="#{ido4SaleOrderBean.ido4SaleOrder.soVatPercVal}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoTotalPriceExcVat" value="So Total Price Exc Vat:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoTotalPriceExcVat" value="#{ido4SaleOrderBean.ido4SaleOrder.soTotalPriceExcVat}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoTotalVat" value="So Total Vat:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoTotalVat" value="#{ido4SaleOrderBean.ido4SaleOrder.soTotalVat}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoTotalPrice" value="So Total Price:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoTotalPrice" value="#{ido4SaleOrderBean.ido4SaleOrder.soTotalPrice}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoStatusNo" value="So Status No:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoStatusNo" value="#{ido4SaleOrderBean.ido4SaleOrder.soStatusNo}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoAddr" value="So Addr:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoAddr" value="#{ido4SaleOrderBean.ido4SaleOrder.soAddr}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderSoMemo01" value="So Memo 01:"/>
			<h:outputText id="ido4SaleOrderBeanIdo4SaleOrderSoMemo01" value="#{ido4SaleOrderBean.ido4SaleOrder.soMemo01}"/>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderIdo4SaleOrderCustAddrs" value="Ido 4Sale Order Cust Addrs:"/>
			<h:dataTable id="ido4SaleOrderBeanIdo4SaleOrderIdo4SaleOrderCustAddrs" styleClass="data-table" value="#{forgeview:asList(ido4SaleOrderBean.ido4SaleOrder.ido4SaleOrderCustAddrs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Addr Type No"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustAddrTypeNo" value="#{_item.soCustAddrTypeNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Addr No"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustAddrNo" value="#{_item.soCustAddrNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Addr Moo"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustAddrMoo" value="#{_item.soCustAddrMoo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Addr Soi"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustAddrSoi" value="#{_item.soCustAddrSoi}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Cust Addr Road"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderCustAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoCustAddrRoad" value="#{_item.soCustAddrRoad}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="ido4SaleOrderBeanIdo4SaleOrderIdo4SaleOrderItems" value="Ido 4Sale Order Items:"/>
			<h:dataTable id="ido4SaleOrderBeanIdo4SaleOrderIdo4SaleOrderItems" styleClass="data-table" value="#{forgeview:asList(ido4SaleOrderBean.ido4SaleOrder.ido4SaleOrderItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Qty"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoQty" value="#{_item.soQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Ppu"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoPpu" value="#{_item.soPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoStatusIncVat" value="#{_item.soStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoVatPercVal" value="#{_item.soVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Vat"/>
					</f:facet>
					<h:link outcome="/ido4SaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoVat" value="#{_item.soVat}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>